package com.general.common.security.entity;

import java.io.Serializable;
import java.util.Collection;

public class Permission implements Serializable {
	
	private static final long serialVersionUID = 6752867479832018034L;
	
	
	private String pmsid;//权限ID
	private String name;//权限名称
	private String permission;//权限标志 如 ：User:view
	private String description;//描述
	private Menu menu;//从属菜单
	private Collection<Role> roles;
	private Collection<User> users;
	
	
	/**
	 * @return the pmsid
	 */
	public String getPmsid() {
		return pmsid;
	}
	/**
	 * @param pmsid the pmsid to set
	 */
	public void setPmsid(String pmsid) {
		this.pmsid = pmsid;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * @return the permission
	 */
	public String getPermission() {
		return permission;
	}
	/**
	 * @param permission the permission to set
	 */
	public void setPermission(String permission) {
		this.permission = permission;
	}
	/**
	 * @return the menu
	 */
	public Menu getMenu() {
		return menu;
	}
	/**
	 * @param menu the menu to set
	 */
	public void setMenu(Menu menu) {
		this.menu = menu;
	}
	/**
	 * @return the roles
	 */
	public Collection<Role> getRoles() {
		return roles;
	}
	/**
	 * @param roles the roles to set
	 */
	public void setRoles(Collection<Role> roles) {
		this.roles = roles;
	}
	/**
	 * @return the users
	 */
	public Collection<User> getUsers() {
		return users;
	}
	/**
	 * @param users the users to set
	 */
	public void setUsers(Collection<User> users) {
		this.users = users;
	}
	
	
	
}
